#ifndef SSICLOUD_TREASURE_H
#define SSICLOUD_TREASURE_H

#include "ssicloud_list_object.h"

namespace ssicloud {

/**
 * @brief The TreasureType class
 *  用车宝典-获取宝典类型
 */
class TreasureType : public ListObject<TreasureTypeLNode> {
public:
    TreasureType();

    //! 获取数据
    bool requestAll();

    //! 调试信息
    void profile();

protected:
    //! 分析数据
    int genResult(NetBuffer *data);
};

/**
 * @brief The TreasureCar class
 *  用车宝典-分页查询
 */
class TreasureCar : public  ListObject<TreasureCarLNode> {
public:
    TreasureCar();

    //! 获取数据
    bool requestAll(const char *title = "测试", int pageNum = 1, int pageSize = 10);

    //! 调试信息
    void profile();

protected:
    //! 分析数据
    int genResult(NetBuffer *data);

    // request
    SFString m_title;
    SFString m_pageNum;
    SFString m_pageSize;

    // responed

};

}

#endif // SSICLOUD_TREASURE_H
